﻿@model IEnumerable<ITProject.WebUI.Models.ProjectAdmin.ProjectAdminFunctionalRequirementViewModel>

@{
    ViewBag.Title = "Wymaganie funkcjonalne";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Panel użytkownika projektu @ViewData["projectName"].ToString()</h2>

<div class="Pmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,
    new ITProject.WebUI.Models.Project.ProjectMenuViewModel { ProjectName = ViewData["ProjectName"].ToString(), Role = (ITProject.Domain.UserRole)ViewData["Role"] })
</div>



<div class="PAmenu">
@Html.Partial(MVC.Shared.Views.Partials._ProjectUserMenu, new List<string> { "WF", ViewData["ProjectName"].ToString() })
@*@Html.ActionLink("Zarządzaj użytkownikami",MVC.ProjectAdmin.ActionNames.ManageTeam, MVC.ProjectAdmin.Name, new { projectName = Model }, null)*@
</div>
<div class="PAplane"> 
<span class="button" id="TSortAsc">Sortowanie A-Z</span>
<span class="button" id="TSortDesc">Sortowanie Z-A</span>
<p class="small">
Wyszukaj: @Html.TextBox("szukaj", null, new { @id = "Tsearch", @class="search"})
</p>
<div class="teamy">    
<table width="100%" class="inbox" id="teams">
<thead>
<tr>
<th class="label" width="50%">Nazwa</th>
<th class="label" width="50%">Opcje</th>
</tr>
</thead>
<tbody>

@foreach (var item in Model) {
    <tr>
        <td class="edit">
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td class="edit">
            @Html.ActionLink("Pokaż", MVC.ProjectUser.ActionNames.FunctionalRequirement, MVC.ProjectUser.Name, new { projectName = ViewData["ProjectName"].ToString(), requirementId = item.RequirementId }, new { @class = "button" })

        </td>
    </tr>
}
</tbody>
</table>
</div>

</div>
<div class="clear">
</div>

